package com.demo.springbootdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.springbootdemo.domain.dto.PageDTO;
import com.demo.springbootdemo.domain.po.User;
import com.demo.springbootdemo.domain.query.UserQuery;
import com.demo.springbootdemo.domain.vo.UserVO;

import java.util.List;

public interface IUserService extends IService<User> {
    public void updateBalanceByIds(List<Long> ids, int amount);

    public void deductById(Long id, int money);

    public List<User> queryUsers(String name, Integer status, Integer minBalance, Integer maxBalance);

    public UserVO getByIdWithAddressList(Long id);

    public List<UserVO> listByIdsWithAddressList(List<Long> ids);

    PageDTO<UserVO> queryUsersPage(UserQuery userQuery);
}
